package org.paic.vertx.httpwrapper;

import java.util.Map;

public class Result {
    // string as text/html
    private String output;

    // json
    private Object json;

    // template output
    private String view;

    private Map<String, Object> viewData;

    // customized http headers
    private Map<String, String> headers;

    // downloads or image etc.
    private String file;

    private byte[] bytes;

    private boolean next = false;

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public boolean isNext() {
        return next;
    }

    public void setNext(boolean next) {
        this.next = next;
    }

    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }

    public Object getJson() {
        return json;
    }

    public void setJson(Object json) {
        this.json = json;
    }

    public String getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public Map<String, Object> getViewData() {
        return viewData;
    }

    public void setViewData(Map<String, Object> viewData) {
        this.viewData = viewData;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public byte[] getBytes() {
        return bytes;
    }

    public void setBytes(byte[] bytes) {
        this.bytes = bytes;
    }
}
